package com.work.facade.impl;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import org.jboss.logging.Logger;

import com.work.dao.CardDAO;
import com.work.facade.CardFacade;
import com.work.model.Card;

/**
 * The Class CardFacadeImpl.
 *
 * @author "Mihai Roman"
 */
@Stateless
public class CardFacadeImpl implements CardFacade {

	/** The Constant LOG. */
	private static final Logger LOG = Logger.getLogger(CardFacadeImpl.class);
	
	@EJB
	private CardDAO cardDAO;
	
	@Override
	public void save(Card card) {
		cardDAO.save(card);
	}

	@Override
	public void update(Card newCard) {
		cardDAO.update(newCard);
	}

	@Override
	public void delete(Card card) {
		cardDAO.delete(card);
	}

}
